﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SportsPlatform.Dto.SportBusiness.RegistrationInfo
{
    /// <summary>
    /// 
    /// </summary>
    public class ApprovalGetRegistrationInfoDetailsDto
    {
        /// <summary>
        /// 
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 参赛人姓名
        /// </summary>
        public string CompeteName { get; set; }

        /// <summary>
        /// 参赛人身份证号码
        /// </summary>
        public string CompeteIdNo { get; set; }

        /// <summary>
        /// 赛事名称
        /// </summary>
        public string CompetitionName { get; set; }

        /// <summary>
        /// 参赛项目
        /// </summary>
        public string CompetitionProjectName { get; set; }

        /// <summary>
        /// 比赛日期
        /// </summary>
        public DateTime GameDate { get; set; }

        /// <summary>
        /// 比赛开始时间
        /// </summary>
        public DateTime CompetitionStartTime { get; set; }

        /// <summary>
        /// 比赛结束时间
        /// </summary>
        public DateTime CompetitionEndTime { get; set; }

        /// <summary>
        /// 比赛项目比赛时间Str
        /// </summary>
        public string ProjectDateTImeStr
        {
            get
            {
                return $"{CompetitionStartTime.ToString("yyyy-MM-dd HH:mm")}～{(CompetitionStartTime.Date == CompetitionEndTime.Date ? CompetitionEndTime.ToString("HH:mm") : CompetitionEndTime.ToString("yyyy-MM-dd HH:mm"))}";
            }
        }

        /// <summary>
        /// 最多感应器数量
        /// </summary>
        public int SensorsMaxNum { get; set; }

        /// <summary>
        /// 个人赛报名人数最大限制
        /// 团队赛不需要传0
        /// </summary>
        public int MaxEmployeeNum { get; set; }

        /// <summary>
        /// 剩余参赛席位
        /// </summary>
        public int RemainingSeats { get; set; }

        /// <summary>
        /// 报名序号
        /// </summary>
        public int RegistrationNo { get; set; }
    }
}
